Date Functions

Description

Portable SQL date functions.

Name
Description
AddDaysToDate

Get the date value NrOfDays days ahead of Date.

AddDaysToDateTime

Get the date and time value NrOfDays days ahead of DateTime.

AddMonthsToDate

Get the date value NrOfMonths months ahead of Date.

AddMonthsToDateTime

Get the date and time value NrOfMonths months ahead of DateTime.

AddYearsToDate

Get the date value NrOfYears years ahead of Date.

AddYearsToDateTime

Get the date and time value NrOfYears years ahead of DateTime.

CurrentDate

Get the current date (according to the SQL database server).

CurrentDateTime

Get the current date and time (according to the SQL database server).

Day

Extract the day of the month from a date or datetime value.

DayName

Extract the day name from a date or datetime value.

DayOfWeek

Extract the day number of the week from a date or datetime value.

DayOfYear

Extract the day number of the year from a date or time value.

DaysBetweenDates

Get the difference in days between two dates.

DaysBetweenDateTimes

Get the difference in days between two datetime values.

Month

Extract the month number from a date or datetime value.

MonthName

Extract the month name from a date or datetime value.

MonthsBetweenDates

Get the difference in months between two dates.

MonthsBetweenDateTimes

Get the difference in months between two datetime values.

NextDay

Gets the day after the specified date or datetime value.

Quarter

Extract the quarter number from a date or datetime value.

Week

Extract the week number of the year from a date or datetime value.

Year

Extract the year from a date or datetime value.

YearsBetweenDates

Get the difference in years between two dates.

YearsBetweenDateTimes

Get the difference in years between two datetimes.